package com.example.wechat114.entity;

import java.math.BigDecimal;

public class Registered {
    private Integer id;

    private String datetime;

    private String hospitalsid;

    private String deptid;

    private String speciality;

    private BigDecimal orderprice;

    private String status;

    private String idnum;

    private String contactname;

    private String contactidtype;

    private String contactidnum;

    private String contactphone;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getHospitalsid() {
        return hospitalsid;
    }

    public void setHospitalsid(String hospitalsid) {
        this.hospitalsid = hospitalsid;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid == null ? null : deptid.trim();
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality == null ? null : speciality.trim();
    }

    public BigDecimal getOrderprice() {
        return orderprice;
    }

    public void setOrderprice(BigDecimal orderprice) {
        this.orderprice = orderprice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getIdnum() {
        return idnum;
    }

    public void setIdnum(String idnum) {
        this.idnum = idnum == null ? null : idnum.trim();
    }

    public String getContactname() {
        return contactname;
    }

    public void setContactname(String contactname) {
        this.contactname = contactname == null ? null : contactname.trim();
    }

    public String getContactidtype() {
        return contactidtype;
    }

    public void setContactidtype(String contactidtype) {
        this.contactidtype = contactidtype == null ? null : contactidtype.trim();
    }

    public String getContactidnum() {
        return contactidnum;
    }

    public void setContactidnum(String contactidnum) {
        this.contactidnum = contactidnum == null ? null : contactidnum.trim();
    }

    public String getContactphone() {
        return contactphone;
    }

    public void setContactphone(String contactphone) {
        this.contactphone = contactphone == null ? null : contactphone.trim();
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":")
                .append(id);
        sb.append(",\"datetime\":\"")
                .append(datetime).append('\"');
        sb.append(",\"hospitalsid\":\"")
                .append(hospitalsid).append('\"');
        sb.append(",\"deptid\":\"")
                .append(deptid).append('\"');
        sb.append(",\"speciality\":\"")
                .append(speciality).append('\"');
        sb.append(",\"orderprice\":")
                .append(orderprice);
        sb.append(",\"status\":\"")
                .append(status).append('\"');
        sb.append(",\"idnum\":\"")
                .append(idnum).append('\"');
        sb.append(",\"contactname\":\"")
                .append(contactname).append('\"');
        sb.append(",\"contactidtype\":\"")
                .append(contactidtype).append('\"');
        sb.append(",\"contactidnum\":\"")
                .append(contactidnum).append('\"');
        sb.append(",\"contactphone\":\"")
                .append(contactphone).append('\"');
        sb.append('}');
        return sb.toString();
    }
}